import { Popover, Tooltip } from 'antd';
import React from 'react';
const Svg = /*#__PURE__*/React.createElement("svg", {
  t: "1622172671340",
  class: "icon",
  viewBox: "0 0 1024 1024",
  version: "1.1",
  xmlns: "http://www.w3.org/2000/svg",
  "p-id": "1511",
  "data-spm-anchor-id": "a313x.7781069.0.i0",
  width: "16",
  height: "16"
}, /*#__PURE__*/React.createElement("path", {
  d: "M971.9 323.9c-24.3-57-58.9-108.3-103-152.4-44.1-44.1-95.4-78.8-152.4-103-59.1-25.1-121.8-37.8-186.2-37.8S403.2 43.4 344.1 68.5c-57 24.3-108.3 58.9-152.4 103s-78.8 95.4-103 152.4C63.6 383 50.9 445.7 50.9 510.1s12.7 127.1 37.8 186.2c24.3 57 58.9 108.3 103 152.4 44.1 44.1 95.4 78.8 152.4 103 59.1 25.1 121.8 37.8 186.2 37.8s127.1-12.7 186.2-37.8c57-24.3 108.3-58.9 152.4-103s78.8-95.4 103-152.4c25.1-59.1 37.8-121.8 37.8-186.2S997 383 971.9 323.9z m-40.5 355.2c-22 51.8-53.5 98.4-93.6 138.5s-86.7 71.6-138.5 93.6c-53.6 22.7-110.5 34.3-169 34.3s-115.4-11.5-169-34.3c-51.8-22-98.4-53.5-138.5-93.6-40.1-40.1-71.6-86.7-93.6-138.5-22.7-53.6-34.3-110.5-34.3-169s11.5-115.4 34.3-169c22-51.8 53.5-98.4 93.6-138.5 40.1-40.1 86.7-71.6 138.5-93.6 53.6-22.7 110.5-34.3 169-34.3s115.3 11.6 169 34.3c51.8 22 98.4 53.5 138.5 93.6 40.1 40.1 71.6 86.7 93.6 138.5 22.7 53.6 34.3 110.5 34.3 169s-11.5 115.4-34.3 169z",
  "p-id": "1512",
  fill: "#1296db",
  "data-spm-anchor-id": "a313x.7781069.0.i2",
  class: "selected"
}), /*#__PURE__*/React.createElement("path", {
  d: "M530.3 727.8c-24 0-43.6 19.6-43.6 43.6s19.6 43.6 43.6 43.6c23.9 0 43.5-19.6 43.6-43.6 0-24-19.6-43.6-43.6-43.6zM638.4 269c-20.2-20.2-45.3-34.2-72.5-40.4-46.5-10.6-94.2 0-130.8 29.2-36.6 29.1-57.6 72.7-57.6 119.4 0 12.2 9.8 22 22 22s22-9.8 22-22c0-33.2 15-64.2 41-85 26.1-20.8 60.2-28.3 93.6-20.7 38.8 8.8 70.9 40.9 79.8 79.8 5.9 25.7 3.1 51.3-8.2 74-10.6 21.5-28.3 39.1-49.8 49.6-42.9 21-69.6 61.7-69.6 106.1v57.6c0 12.2 9.8 22 22 22 12.1 0 22-9.9 21.9-22V581c0-27.5 17.3-53 45-66.6 30.1-14.8 55-39.5 69.9-69.6 15.8-31.9 19.8-67.6 11.7-103.3-6.2-27.2-20.2-52.3-40.4-72.5z",
  "p-id": "1513",
  fill: "#1296db",
  "data-spm-anchor-id": "a313x.7781069.0.i1",
  class: ""
}));
export default function (props) {
  const {
    title,
    content,
    svg = Svg,
    placement = "top",
    trigger = "click"
  } = props; // const TopTitle = (<h2>{title}</h2>)
  // const Content = (<h3>{content}</h3>)

  return /*#__PURE__*/React.createElement(Tooltip, {
    title: content,
    placement: placement,
    trigger: trigger
  }, /*#__PURE__*/React.createElement("span", {
    style: {
      marginLeft: "15px"
    }
  }, svg));
}